package com.spring.shiro.main.java.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.spring.shiro.main.common.utils.PageInfo;
import com.spring.shiro.main.java.mapper.SysLogMapper;
import com.spring.shiro.main.java.model.SysLog;
import com.spring.shiro.main.java.service.LogService;

@Service
public class LogServiceImpl implements LogService {
	@Autowired
	private SysLogMapper sysLogMapper;
	
	@Override
	public void insertLog(SysLog sysLog) {
		sysLogMapper.insert(sysLog);

	}

	@Override
	public void findDataGrid(PageInfo pageInfo) {
		pageInfo.setRows(sysLogMapper.findDataGrid(pageInfo));
		pageInfo.setTotal(sysLogMapper.findDataGridCount());

	}

}
